﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="house.ascx.cs" Inherits="mwc_admin_controls_house" %>
<div style="padding: 10px;">
<asp:Panel ID="pn_listhouse" runat="server">
    <p style="font-size:12pt;font-weight:bold;">List House</p>
    <asp:DropDownList ID="ddl_housecategory" runat="server">
        
    </asp:DropDownList><br /><br />
    <asp:GridView ID="gvListHouse" runat="server" AutoGenerateColumns="false">
        <Columns>
            <asp:BoundField ItemStyle-Width="5%"  DataField="id" HeaderText="ID" InsertVisible="false" ReadOnly="true" SortExpression="id" />
            <asp:BoundField   DataField="address" HeaderText="Address" InsertVisible="false" ReadOnly="true" SortExpression="address" />
            <asp:HyperLinkField ItemStyle-Width="10%" HeaderText="Edit" Text="Change" DataNavigateUrlFields="id" DataNavigateUrlFormatString="~/mwc_admin/Panel.aspx?option=house&task=edit&id={0}" />
        </Columns>
    </asp:GridView>
</asp:Panel>
<asp:Panel ID="pn_housedetail" runat="server">
    <table>
        <tr>
            <td>Category</td>
            <td><asp:DropDownList ID="house_category" runat="server"></asp:DropDownList></td>
        </tr>
        <tr>
            <td>Billede:</td>
            <td>
                <script type="text/javascript">
                function showInfo() {
                    alert("OK");
                }
                </script>
                <ACT:AsyncFileUpload ID="AsyncFileUpload1" 
                    OnUploadedComplete="uploadComplete" 
                    OnClientUploadComplete="showInfo" 
                    runat="server" 
                    ThrobberID="abc" 
                    UploadingBackColor="LightBlue"
                    ErrorBackColor="Red"
                    CompleteBackColor="Green"
                    UploaderStyle="Modern"
                />
            </td>
        </tr>
        <tr>
            <td>Intro Tekst:</td>
            <td><CKEditor:CKEditorControl ID="house_introtext" runat="server"></CKEditor:CKEditorControl></td>
        </tr>
        <tr>
            <td>Full Tekst:</td>
            <td><CKEditor:CKEditorControl ID="house_fulltext" runat="server"></CKEditor:CKEditorControl></td>
        </tr>
        <tr>
            <td>Adresse:</td>
            <td><asp:TextBox ID="house_address" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Post nummer:</td>
            <td><asp:TextBox ID="house_postnumber" runat="server" /></td>
        </tr>
        <tr>
            <td>Areal:</td>
            <td><asp:TextBox ID="house_areal" runat="server" /></td>
        </tr>
        <tr>
            <td>Salg/Leje:</td>
            <td><asp:RadioButtonList ID="house_sale_rent" runat="server">
                <asp:ListItem Selected="True" Text="Salg" Value="1"></asp:ListItem>
                <asp:ListItem Text="Leje" Value="0"></asp:ListItem>
            </asp:RadioButtonList></td>
        </tr>
        <tr>
            <td>Sågånr:</td>
            <td><asp:TextBox ID="house_saganr" runat="server" /></td>
        </tr>
        <tr>
            <td>Leje pr. m²:</td>
            <td><asp:TextBox ID="house_leje_pr_m2" runat="server" /></td>
        </tr>
        <tr>
            <td>Enable:</td>
            <td><asp:CheckBox ID="house_enable" runat="server" Checked="true" /></td>
        </tr>
    </table>
    <div style="width:100%;text-align:center;">
        <asp:Button ID="house_save" runat="server" Text="Save" OnClick="saveHouse" style="padding:0 15px 0 15px;" /><asp:Button ID="house_cancel" runat="server" Text="Cancel" style="padding:0 15px 0 15px;" OnClick="cancelHouse" />
    </div>
</asp:Panel>
</div>